{# Switch to icon instead of text in `sm` view size for BS3 only. #}
<hr>
<ul class="nav">
  <li>
    <a href="{{ theme_github }}{{pagename}}.rst">Edit this page on Github</a>
  </li>
  {%- if prev %}
  <h5>Previous topic</h5>
  <li>
    <a href="{{ prev.link|e }}" title="{{ _('Previous Chapter: ') + prev.title|striptags }}">
      {{ prev.title|striptags|truncate(length=24, killwords=True) }}
    </a>
  </li>
  {%- endif %}
  {%- if next %}
  <h5>Next topic</h5>
  <li>
    <a href="{{ next.link|e }}" title="{{ _('Next Chapter: ') + next.title|striptags }}">
      {{ next.title|striptags|truncate(length=24, killwords=True) }}
    </a>
  </li>
  {%- endif %}
</ul>
